export const CURRENT_STATUS = {
  'FIRST_AUDIT': '主任审批中',
  'RISK_AUDIT': '放款审批中',
  'LOAN_SUCCESS': '放款成功'
}

export const QUERY_HEAD_LIST = [
  { prop: 'loanSerialNo', label: '借款编号' },
  { prop: 'newNmae', label: '申请人' },
  { prop: 'newProductType', label: '产品名称' },
  { prop: 'loanAmount', label: '申请金额' },
  { prop: 'newLoanPeriods', label: '申请期数' },
  { prop: 'newFeePayType', label: '还款方式' },
  { prop: 'newLoanRate', label: '年利率' },
  { prop: 'newLoanStatus', label: '当前状态' },
  { prop: 'acceptorName', label: '受理人' },
  { prop: 'acceptorOrgName', label: '所属机构' },
  { prop: 'createTime', label: '申请提交时间', width: '120px' },
  { prop: 'statusUpdateTime', label: '到达当前状态时间', width: '140px' },
  { prop: 'statusStopTime', label: '当前状态停留时长', width: '140px' }
]
export const APPROVAL_HEAD_LIST = [
  { prop: 'loanSerialNo', label: '借款编号' },
  { prop: 'newNmae', label: '申请人' },
  { prop: 'newProductType', label: '产品名称' },
  { prop: 'loanAmount', label: '申请金额' },
  { prop: 'newLoanPeriods', label: '申请期数' },
  { prop: 'newFeePayType', label: '还款方式' },
  { prop: 'newLoanRate', label: '年利率' },
  { prop: 'acceptorName', label: '受理人' },
  { prop: 'acceptorOrgName', label: '所属机构' },
  { prop: 'createTime', label: '申请提交时间', width: '120px' },
  { prop: 'statusUpdateTime', label: '到达当前状态时间', width: '140px' },
  { prop: 'statusStopTime', label: '当前状态停留时长', width: '140px' }
]

export const DETAIL_FORM = [
  { prop: 'loanSerialNo', label: '借款编号', type: 'input', isEdit: false },
  { prop: 'newProduct', label: '产品名称', type: 'input', isEdit: false },
  { prop: 'newLoanStatus', label: '当前状态', type: 'input', isEdit: false },
  { prop: 'loanAmount', label: '申请金额(元)', type: 'input', isEdit: false },
  { prop: 'newLoanPeriods', label: '申请期数', type: 'input', isEdit: false },
  { prop: 'newLoanRate', label: '年利率', type: 'input', isEdit: false },
  { prop: 'newFeePayType', label: '还款方式', type: 'input', isEdit: false },
  { prop: 'createTime', label: '申请时间', type: 'input', isEdit: false },
  { prop: 'newStatusStopTime', label: '当期状态停留时间', width: '140px', type: 'input', isEdit: false },
  { prop: 'acceptorNo', label: '受理人工号', type: 'input', isEdit: false },
  { prop: 'acceptorName', label: '受理人姓名', type: 'input', isEdit: false },
  { prop: 'acceptorOrgName', label: '所属机构', type: 'input', isEdit: false }
]

export const CUS_FORM = [
  { prop: 'newName', label: '申请人姓名', type: 'input', isEdit: false, isView: true, viewProp: 'customerName' },
  { prop: 'newIdNbr', label: '身份证号码', type: 'input', isEdit: false, isView: true, viewProp: 'idNbr' },
  { prop: 'newPhone', label: '手机号码', type: 'input', isEdit: false, isView: true, viewProp: 'customerPhone' },
  { prop: 'totalQuota', label: '授信额度(元)', type: 'input', isEdit: false },
  { prop: 'remainQuota', label: '剩余可用额度(元)', type: 'input', isEdit: false },
  { prop: 'usedQuota', label: '已用额度(元)', type: 'input', isEdit: false }
]

export const AUDIT_RESULT = {
  'PASS': '同意',
  'REJECT': '拒绝'
}

export const APPROVAL_FORM = [
  { prop: 'auditResult', label: '审批结果', inputWith: '200px', type: 'select', option: AUDIT_RESULT, rules: { required: true, message: '请选择类型', trigger: 'change' }, isEdit: true },
  { prop: 'auditAdvice', label: '审批意见', type: 'textarea', len: 200, rules: { required: true, message: '请输入配置项名称', trigger: 'blur' }, isEdit: true },
  { prop: '', label: '', type: 'btn', btnName: '保存' }
]
